<?

require(dirname(__FILE__).'/_base/BaseTaskFile.php');

class TaskFile extends BaseTaskFile{
    
    public static function model($className=__CLASS__) {
        return parent::model($className);
    }
    
    public function rules() {
        return array(
            array('task_id, file_id', 'required'),
            array('task_id, file_id', 'numerical', 'integerOnly'=>true),
            array('id, task_id, file_id', 'safe', 'on'=>'search'),
        );
    }

    public function relations() {
        return array(
            'file' => array(self::BELONGS_TO, 'File', 'file_id'),
        );
    }
    
}
